import request from '@/utils/request'

export const loginAPI = (loginForm) => {
  return request({
    url: '/sys/login',
    method: 'post',
    data: loginForm
  })
}

// 获取用户基本信息
export const getUserProfileAPI = () => {
  return request({
    url: '/sys/profile',
    method: 'POST'
  })
}

// 获取用户基本信息，包含头像
export const getUserInfoAPI = (id) => {
  return request({
    url: `/sys/user/${id}`
  })
}
